<div class="m-tab s-tab">
	<h2 class="u-tt">用户管理</h2>
	<div class="filter">
		<form method="get" action="{$url|'User/index'}">
			<input name="r" type="hidden" value="admin/User/index" />
			<select class="u-slt" name="group_id" id="group_id">
				<option value="0">==用户组==</option>
				<!--{loop="$groupList $vo"}-->
				<option value="{$vo.group_id}" {if="$vo['group_id']==$_GET['group_id']"}selected="selected"{/if} >{$vo.name}</option>
				<!--{/loop}-->
			</select>
			用户名/邮箱：
			<input name="keyword" id="keyword" type="text" value="{$_GET.keyword}" class="u-ipt u-ipt-2"/>
			<button class="u-btn" type="submit">筛选</button>
		</form>
	</div>
	<ul>
		<li class="z-crt"><a href="{$url|'User/index'}">用户列表</a></li>
		<li><a href="{$url|'User/add'}">添加用户</a></li>
	</ul>
</div>
<table class="m-table m-table-row" id="table">
	<thead class="m-table-thead s-table-thead">
		<tr>
			<th class="cola">ID</th>
			<th>帐号</th>
			<th>昵称</th>
			<th>邮箱</th>
			<th>管理组</th>
			<th class="colb">状态</th>
			<th class="colc">操作</th>
		</tr>
	</thead>
	<tbody>
		<!--{loop="$list $key $vo"}-->
		<tr>
			<td>{$vo.user_id}</td>
			<td>{$vo.username}</td>
			<td>{$vo.nicename}</td>
			<td>{$vo.email}</td>
			<td>{$vo.group_name}</td>
			<td><!--{if="$vo['status']"}--> 
				<font color="green">正常</font> 
				<!--{else}--> 
				<font color="red">禁用</font> 
				<!--{/if}--></td>
			<td><a href="<?php echo url('User/edit',array('user_id'=>$vo['user_id'])); ?>">资料</a> / <a href="<?php echo url('User/advanced',array('user_id'=>$vo['user_id'])); ?>">高级</a> / <a href="javascript:;" data="{$vo.user_id}" class="u-del">删除</a></td>
		</tr>
		<!--{/loop}-->
	</tbody>
</table>
<div class="m-table-tool">
	<div class="m-page"> {$page} </div>
</div>
<script>
Do.ready('base','dialog',function() {
	$('#table').duxTable({selectAll:'#selectAll',deleteUrl:'{$url|"User/del"}'});
});
</script>